const odooModelName = 'res.partner'

const fields_default = {
  name: null,
  email: null,
  date: null,
  type: null,
  display_name: null,
  title: null,
  category_id: { name: null, display_name: null },
  bank_ids: { bank_id: null, acc_number: null, display_name: null }
}

const detail_columns = [
  'category_id__names',
  'date',
  'title__name',
  'name',
  'email',
  'type__name',
  'display_name'
]

const child_configs = {
  bank_ids: {
    columns: ['acc_number', 'bank_id__name'],
    formItems: ['acc_number', 'bank_id']
  }
}

const formItems = ['name', 'email', 'type', 'title', 'category_id']

const Model = {
  name: odooModelName,
  configs: {
    fields_default,
    detail_columns,
    child_configs,
    formItems
  }
}

export default Model
